package com.bdqn.service;

import com.bdqn.mapper.AppCategoryMapper;
import com.bdqn.pojo.AppCategory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 手游分类业务逻辑层实现
 *
 * @author LILIBO
 * @since 2021-06-15
 */
@Service("appCategoryService")
public class AppCategoryServiceImpl implements AppCategoryService {

    @Resource
    private AppCategoryMapper appCategoryMapper; // 引入DAO层

    /**
     * 根据父级ID获得分类列表
     *
     * @param parentId
     * @return
     */
    @Override
    public List<AppCategory> getListByParentId(Long parentId) {
        return appCategoryMapper.getListByParentId(parentId);
    }
}
